$OpenBSD: patch-gifread_c,v 1.3 2007/07/18 09:58:22 jasper Exp $
--- gifread.c.orig	Thu Jul 12 16:00:58 2007
+++ gifread.c	Thu Jul 12 16:02:08 2007
@@ -834,7 +834,7 @@ read_gif(Gif_Reader *grr, int read_flags,
      default:
        if (!unknown_block_type) {
 	 char buf[256];
-	 sprintf(buf, "unknown block type %d at file offset %d", block, gifgetoffset(grr) - 1);
+	 snprintf(buf, sizeof(buf), "unknown block type %d at file offset %d", block, gifgetoffset(grr) - 1);
 	 gif_read_error(&gfc, buf);
 	 unknown_block_type = 1;
        }
